﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FirstInfoClick : MonoBehaviour
{

    public bool isShow=true;
    public GameObject xuanzhuanObJ1, xuanzhuanObJ2;
    void Start()
    {
        transform.GetComponent<Button>().onClick.AddListener(delegate { ShowUI(); });
    }

    void ShowUI()
    {
        isShow = !isShow;
        xuanzhuanObJ1.SetActive(isShow);
        xuanzhuanObJ2.SetActive(isShow);
    }



    private void OnDisable()
    {
        isShow = false;
    }

}
